home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13511 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  993 b 

  1. Path: news.umbc.edu!not-for-mail
  2. From: schlein@umbc.edu (Jonas J. Schlein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: SIN?
  5. Date: 8 Apr 1996 09:59:19 -0400
  6. Organization: University of Maryland Baltimore County
  7. Message-ID: <4kb63n$37g@umbc9.umbc.edu>
  8. References: <90.50656.1119@svis.org>
  9. NNTP-Posting-Host: umbc9.umbc.edu
  10. NNTP-Posting-User: schlein
  11.  
  12. Cory Pollock <cory.pollock@svis.org> wrote:
  13. |> Can someone please wirte a little program to show me what the function
  14. |> SIN((FLOAT)X) does?
  15.  
  16. It doesn't do anything because SIN() is not a standard C function. Perhaps
  17. you mean sin()? With a case sensitive language you need to be careful.
  18. Assuming all lowercase for moment then it will cast the value of x to
  19. float, pass this to the sin() function which will return a result. To be
  20. honest the cast isn't really necessary if using an ANSI C compiler with
  21. a correct prototype for sin() in scope.
  22. -- 
  23. "If it wasn't for C, we would be using BASI, PASAL, and OBOL."
  24.  
  25. Jonas J. Schlein  (schlein@gl.umbc.edu)
  26.